package org.javaboy.vhr.mapper;

import org.apache.ibatis.annotations.Param;
import org.javaboy.vhr.bean.Employee;

import java.util.Date;
import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);
    //分页查找员工
    List<Employee> getEmployeeByPage(@Param("page") Integer page, @Param("size") Integer size,
                                     @Param("emp") Employee employee,@Param("beginDateScope") Date[] beginDateScope);
    // 查询总员工数
    Long getTotal(@Param("emp") Employee employee,@Param("beginDateScope") Date[] beginDateScope);
    //查询当前最大的工号id
    Integer maxWorkID();
    //添加Excel中的数据
    Integer addEmps(@Param("list") List<Employee> lsit);
}